package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.*

/**
 * Created by chenxz on 2018/4/22.
 */
class LoanHistoryAdapter(private val context: Context?, datas: MutableList<BillDetailBean>) :
    BaseQuickAdapter<BillDetailBean, BaseViewHolder>(R.layout.item_load_history, datas) {

    override fun convert(helper: BaseViewHolder?, item: BillDetailBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_time_shoudao,item.date_text)
            .setText(R.id.tv_name_phone,item.title)
            .setText(R.id.tv_type_name,item.mb_name)
            .setText(R.id.tv_momey,"￥"+item.amount)

    }

}
